@layout("/common/_container.html",{plugins:["ztree"],js:["/pages/modular/system/user/user.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">用户管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">
            <div class="layui-card">
                <div class="layui-card-body mini-bar">
                    <div class="ztree" id="deptTree"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm12 layui-col-md9 layui-col-lg10">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="name" name="name" class="layui-input" type="text" placeholder="姓名"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn layui-btn-sm "><i class="layui-icon layui-icon-search"></i>搜索</button>
                                <button id="btnReset" class="layui-btn icon-btn layui-btn-sm"><i class="layui-icon layui-icon-refresh-3"></i>重置</button>
                                <button id="btnAdd" class="layui-btn icon-btn layui-btn-sm "><i class="layui-icon layui-icon-add-1"></i>添加</button>
                                <button id="btnExp" class="layui-btn icon-btn layui-btn-sm"><i class="layui-icon layui-icon-export"></i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="SysUserModuleTable" lay-filter="SysUserModuleTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-xs" lay-event="btnEdit">修改</a>
    <a class="layui-btn layui-btn-xs" lay-event="btnDelete">删除</a>
    <a class="layui-btn layui-btn-xs" lay-event="roleAssign">分配角色</a>
</script>

<script type="text/html" id="statusTpl">
    <input type="checkbox" lay-filter="status" value="{{d.userId}}" lay-skin="switch" lay-text="正常|冻结" {{d.status=='ENABLE'?'checked':''}} />
</script>

@}